package com.dc.dao;

import java.util.List;

import com.dc.entity.ProductType;
import com.dc.tools.PageData;

/**
 * Dao接口
 * @author 91314
 *
 */
public interface ProductTypeDao {
	//增加
	public boolean addProductType(ProductType producttype);
	
	//删除
	public boolean deleteProductType(int typeid);
	
	//修改
	public boolean updateProductType(ProductType producttype);
	
	//查询按照类型名称
	public List<ProductType> selectProductTypeByLike(String typename);
	
	
	//查询按照类型编号
	public List<ProductType> selectProductTypeById(int typeid);
	
	//精确查询，添加的时候用
	public ProductType selectProductTypeByName(String typename);
	
	//分页查询
	public PageData<ProductType> selectProductTypeByPage(int page,int pageSize,String keywords);

}
